import Vue from 'vue'
import App from './App'
import api from './request/api.js'
import {post, get} from './request/http.js'
import config from 'utils/config.js'
import store from './store/index.js'
// import BaiduMap from 'vue-baidu-map'

// import { VueJsonp } from 'vue-jsonp'


Vue.config.productionTip = false
Vue.prototype.api = api; //api接口
Vue.prototype.$post = post; //HTTP请求
Vue.prototype.$get = get; //HTTP请求
Vue.prototype.config = config; //基础配置及信息
Vue.prototype.$store = store; //基础配置及信息
App.mpType = 'app';
// Vue.use(VueJsonp)

// Vue.use(BaiduMap, {
//   // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
//   ak: '6aWsOqLGeLjXO76YmmsLNqeyEB7Ibmt0'
// })

const app = new Vue({
    store,
    ...App
})

// app.$jsonp('/some-jsonp-url', {
//   myCustomUrlParam: 'veryNice'
// })
app.$mount()